{extend name="../../admin/view/main"}

{block name='content'}
<form action="{:sysuri()}" class="layui-card layui-form" data-auto="true" method="post">
    <div class="layui-card-body">
        <div class="layui-form-item">
            <div class="layui-row">
                <div class="layui-col-xs4" style="padding-right: 5px">
                    <span class="help-label"><b><span style="color: red"></span>企业类型</b></span>
                    <select class="layui-select" lay-filter="level_id" required name="extension.enterprise_type"
                            lay-search>
                        <option value="">-- 请选择 --</option>
                        {foreach $enterprise_type as $key => $v}
                        <option value="{$v.id}" {if $v.id eq ($vo.extension.enterprise_type ?? 0)}selected{/if}>{$v.value|default="无"}</option>
                        {/foreach}
                    </select>
                </div>
                <div class="layui-col-xs4" style="padding-right: 5px">
                    <span class="help-label"><b><span style="color: red"></span>行业分类</b></span>
                    <select class="layui-select" lay-filter="level_id" required name="extension.industry_classification"
                            lay-search>
                        <option value="">-- 请选择 --</option>
                        {foreach $industry_classification as $key => $v}
                        <option value="{$v.id}" {if $v.id eq ($vo.extension.industry_classification ?? 0)}selected{/if}>{$v.value|default="无"}</option>
                        {/foreach}
                    </select>
                </div>
                <div class="layui-col-xs4" style="padding-right: 5px">
                    <span class="help-label"><b><span style="color: red"></span>企业规模</b></span>
                    <select class="layui-select" lay-filter="level_id" required name="extension.enterprise_scale"
                            lay-search>
                        <option value="">-- 请选择 --</option>
                        {foreach $enterprise_scale as $key => $v}
                        <option value="{$v.id}" {if $v.id eq ($vo.extension.enterprise_scale ?? 0)}selected{/if}>{$v.value|default="无"}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-row">
                <div class="layui-col-xs4" style="padding-right: 5px">
                    <span class="help-label"><b><span style="color: red"></span>企业营收</b></span>
                    <select class="layui-select" lay-filter="level_id" required name="extension.corporate_revenue"
                            lay-search>
                        <option value="">-- 请选择 --</option>
                        {foreach $corporate_revenue as $key => $v}
                        <option value="{$v.id}" {if $v.id eq ($vo.extension.corporate_revenue ?? 0)}selected{/if}>{$v.value|default="无"}</option>
                        {/foreach}
                    </select>
                </div>
                <div class="layui-col-xs4" style="padding-right: 5px">
                    <span class="help-label"><b><span style="color: red"></span>纳税等级</b></span>
                    <select class="layui-select" lay-filter="level_id" required name="extension.tax_bracket"
                            lay-search>
                        <option value="">-- 请选择 --</option>
                        {foreach $tax_bracket as $key => $v}
                        <option value="{$v.id}" {if $v.id eq ($vo.extension.tax_bracket ?? 0)}selected{/if}>{$v.value|default="无"}</option>
                        {/foreach}
                    </select>
                </div>
                <div class="layui-col-xs4" style="padding-right: 5px">
                    <span class="help-label"><b><span style="color: red"></span>用工人数</b></span>
                    <select class="layui-select" lay-filter="level_id" required name="extension.workers_number"
                            lay-search>
                        <option value="">-- 请选择 --</option>
                        {foreach $workers_number as $key => $v}
                        <option value="{$v.id}" {if $v.id eq ($vo.extension.workers_number ?? 0)}selected{/if}>{$v.value|default="无"}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-row">
                <div class="layui-col-xs4" style="padding-right: 5px">
                    <span class="help-label"><b><span style="color: red"></span>研发投入占比</b></span>
                    <select class="layui-select" lay-filter="level_id" required name="extension.develop_proportion"
                            lay-search>
                        <option value="">-- 请选择 --</option>
                        {foreach $develop_proportion as $key => $v}
                        <option value="{$v.id}" {if $v.id eq ($vo.extension.develop_proportion ?? 0)}selected{/if}>{$v.value|default="无"}</option>
                        {/foreach}
                    </select>
                </div>

                <div class="layui-col-xs4" style="padding-right: 5px">
                    <span class="help-label"><b><span style="color: red"></span>发明专利数量</b></span>
                    <select class="layui-select" lay-filter="level_id" required name="extension.patent_number"
                            lay-search>
                        <option value="">-- 请选择 --</option>
                        {foreach $patent_number as $key => $v}
                        <option value="{$v.id}" {if $v.id eq ($vo.extension.patent_number ?? 0)}selected{/if}>{$v.value|default="无"}</option>
                        {/foreach}
                    </select>
                </div>

                <div class="layui-col-xs4" style="padding-right: 5px">
                    <span class="help-label"><b><span style="color: red"></span>软著数量</b></span>
                    <select class="layui-select" lay-filter="level_id" required name="extension.soft_quantity"
                            lay-search>
                        <option value="">-- 请选择 --</option>
                        {foreach $soft_quantity as $key => $v}
                        <option value="{$v.id}" {if $v.id eq ($vo.extension.soft_quantity ?? 0)}selected{/if}>{$v.value|default="无"}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-row">
                <div class="layui-col-xs4" style="padding-right: 5px">
                    <span class="help-label"><b><span style="color: red"></span>技术资质</b></span>
                    <select class="layui-select" lay-filter="level_id" required
                            name="extension.technical_qualifications"
                            lay-search>
                        <option value="">-- 请选择 --</option>
                        {foreach $technical_qualifications as $key => $v}
                        <option value="{$v.id}" {if $v.id eq ($vo.extension.technical_qualifications ?? 0)}selected{/if}>{$v.value|default="无"}</option>
                        {/foreach}
                    </select>
                </div>
                <div class="layui-col-xs4" style="padding-right: 5px">
                    <span class="help-label"><b><span style="color: red"></span>产业链角色</b></span>
                    <select class="layui-select" lay-filter="level_id" required name="extension.industrial_chain_role"
                            lay-search>
                        <option value="">-- 请选择 --</option>
                        {foreach $industrial_chain_role as $key => $v}
                        <option value="{$v.id}" {if $v.id eq ($vo.extension.industrial_chain_role ?? 0)}selected{/if}>{$v.value|default="无"}</option>
                        {/foreach}
                    </select>
                </div>
                <div class="layui-col-xs4" style="padding-right: 5px">
                    <span class="help-label"><b><span style="color: red"></span>成立年限</b></span>
                    <select class="layui-select" lay-filter="level_id" required name="extension.establishment_period"
                            lay-search>
                        <option value="">-- 请选择 --</option>
                        {foreach $establishment_period as $key => $v}
                        <option value="{$v.id}" {if $v.id eq ($vo.extension.establishment_period ?? 0)}selected{/if}>{$v.value|default="无"}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
        </div>
        <label class="layui-form-item relative block">
            <span class="help-label"><b>法人姓名</b></span>
            <input class="layui-input" name="sbr_xm" placeholder="请输入法人姓名" value='{$vo.sbr_xm|default=""}'>
        </label>


        <label class="layui-form-item relative block">
            <span class="help-label"><b>手机号码</b></span>
            <input class="layui-input" name="phone" placeholder="请输入手机号码" value='{$vo.phone|default=""}'>
        </label>

        <div class="layui-form-item">
            <span class="help-label"><b>营业执照</b></span>
            <div class="relative block label-required-null">
                <input class="layui-input think-bg-gray" name="yyzz" placeholder="请上传营业执照" readonly
                       value='{$vo.yyzz|default=""}'>
                <a class="layui-icon layui-icon-upload input-right-icon" data-file data-field="yyzz"
                   data-type="gif,png,jpg,jpeg"></a>
            </div>
        </div>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>企业地址</b></span>
            <input class="layui-input" name="qydz" placeholder="请输入企业地址" value='{$vo.qydz|default=""}'>
        </label>


        <div class="hr-line-dashed"></div>
        {notempty name='vo.id'}<input name='id' type='hidden' value='{$vo.id}'>{/notempty}

        <div class="layui-form-item text-center">
            <button class="layui-btn" type="submit">保存数据</button>
            <button class="layui-btn layui-btn-danger" data-history-back data-confirm="确定要取消编辑吗？" type='button'>
                取消编辑
            </button>
        </div>
    </div>

</form>

<script>
    $('input[name="yyzz"]').uploadOneImage();
</script>
{/block}
